#flash= flash[:error]
#content-title
  %h1 Edit User
  %p Go ahead and edit your account
#event-listings
  .listing
    - form_for @user, user_url, :method => 'put' do |form|  
      %table
        %tr
          %th Name:
          %td= form.text_field :login
          %td= error_message_on :user, :login
        %tr
          %th Email:
          %td= form.text_field :email
          %td= error_message_on :user, :email
        %tr
          %td Password:
          %td= form.password_field :password
          %td= error_message_on :user, :password
        %tr 
          %th Retype Password:
          %td= form.password_field :password_confirmation
          %td= error_message_on :user, :password_confirmation
      = submit_tag 'Update'